import Mock from 'mockjs'

const data = Mock.mock({
	'list|100': [{
		'title': '@ctitle',
		'type|1': ['数码', '电影', '衣服', '吃的', '玩的'],
		'id': '@id',
		'url': '@image(50x50, @color, @cname)',
		'desc': '@cword(20,40)',
		'price|10-1000': 1,
		'key': '@id'
	}]
})


Mock.mock('/api/products', () => ({ code: 200, data: data.list }))